//假设任务为处理两个数相加
#pragma once
#include<stdio.h>
const char*opera_="wsadcc";
class Car
{
    public:
    Car(const char&op)
    :op_(op)
    {

    }
    char GetOp()
    {
        return op_;
    }
    void operator()()
    {
        run();
    }
    void run()
    {
        switch (op_)
        {
        case 'w':
            printf("前进！！\n");
            break;
        case 's':
        printf("后退！！\n");
        break;
        case 'a':
        printf("左转！！\n");
        break;
        case 'd':
        printf("右转！！\n");
        break;
        default:
        printf("非法参数！！\n");
            break;
        }
    }
    ~Car()
    {

    }
    private:
    char op_;

};